package com.emm.yixun.openapi.hander;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.emm.yixun.common.app.GetNonpaymentListReqDto;
import com.emm.yixun.common.app.GetNonpaymentNumResDto;
import com.emm.yixun.marketing.service.NeedReceiveRefundServiceFacade;
import com.emm.yixun.openapi.dto.base.BaseRequestDTO;
import com.emm.yixun.openapi.dto.base.BaseResponseDTO;
import com.emm.yixun.openapi.vo.GetNonpaymentListReqVo;
import com.emm.yixun.openapi.hander.base.CommonAbstractHander;

/**
 * 签约回款提醒数量（签约未付款数量）
 * @author junze.liu
 *
 */
@Service("getNonpaymentNumHander")
public class GetNonpaymentNumHander extends CommonAbstractHander{
	
	@Autowired
	private NeedReceiveRefundServiceFacade needReceiveRefundServiceFacade;
	
	@SuppressWarnings("rawtypes")
	@Override
	public BaseResponseDTO doBusiness(BaseRequestDTO reqDto) {
		GetNonpaymentListReqVo req = (GetNonpaymentListReqVo)reqDto;
		GetNonpaymentListReqDto reqDto1 = req.getParams();
		BaseResponseDTO<GetNonpaymentNumResDto> res = new BaseResponseDTO<GetNonpaymentNumResDto>();
		res.setResData(needReceiveRefundServiceFacade.selectNonpaymentNumByApp(reqDto1));
		return res;
	}
	
}
